using MetroIoc;
using metroioc.Container;

namespace metroioc.tests.Artefacts
{
    class TestClassWithPropertiesAndConstructor
    {
        public string Name { get; private set; }
        public IFirst First { get; private set; }
        public ISecond Second { get; private set; }

        public TestClassWithPropertiesAndConstructor(ISecond second)
        {
            Second = second;
        }

        [Inject]
        public string CustomerName
        {
            get { return Name; }
            set { Name = value; }
        }

        [Inject]
        public IFirst FirstProperty
        {
            get { return First; }
            set { First = value; }
        }
    }
}